import service from '@/utils/request'

// @Tags MasterBOMPrintHistory
// @Summary 创建MasterBOM-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMPrintHistory true "创建MasterBOM-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /masterBOMPrintHistory/createMasterBOMPrintHistory [post]
export const createMasterBOMPrintHistory = (data) => {
  return service({
    url: '/masterBOMPrintHistory/createMasterBOMPrintHistory',
    method: 'post',
    data
  })
}

// @Tags MasterBOMPrintHistory
// @Summary 删除MasterBOM-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMPrintHistory true "删除MasterBOM-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMPrintHistory/deleteMasterBOMPrintHistory [delete]
export const deleteMasterBOMPrintHistory = (params) => {
  return service({
    url: '/masterBOMPrintHistory/deleteMasterBOMPrintHistory',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMPrintHistory
// @Summary 批量删除MasterBOM-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除MasterBOM-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMPrintHistory/deleteMasterBOMPrintHistory [delete]
export const deleteMasterBOMPrintHistoryByIds = (params) => {
  return service({
    url: '/masterBOMPrintHistory/deleteMasterBOMPrintHistoryByIds',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMPrintHistory
// @Summary 更新MasterBOM-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMPrintHistory true "更新MasterBOM-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /masterBOMPrintHistory/updateMasterBOMPrintHistory [put]
export const updateMasterBOMPrintHistory = (data) => {
  return service({
    url: '/masterBOMPrintHistory/updateMasterBOMPrintHistory',
    method: 'put',
    data
  })
}

// @Tags MasterBOMPrintHistory
// @Summary 用id查询MasterBOM-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MasterBOMPrintHistory true "用id查询MasterBOM-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /masterBOMPrintHistory/findMasterBOMPrintHistory [get]
export const findMasterBOMPrintHistory = (params) => {
  return service({
    url: '/masterBOMPrintHistory/findMasterBOMPrintHistory',
    method: 'get',
    params
  })
}

// @Tags MasterBOMPrintHistory
// @Summary 分页获取MasterBOM-历史快照列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取MasterBOM-历史快照列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /masterBOMPrintHistory/getMasterBOMPrintHistoryList [get]
export const getMasterBOMPrintHistoryList = (params) => {
  return service({
    url: '/masterBOMPrintHistory/getMasterBOMPrintHistoryList',
    method: 'get',
    params
  })
}
